<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- 引入easyui 的主题样式  和  easyui 提供的图标样式 -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/themes/bootstrap/easyui.css"  charset=UTF-8/>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/themes/icon.css"  charset=UTF-8/>
<!-- 引入jquery 和  easyui.js   中文设置js-->
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery-1.9.1.js" charset=UTF-8></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery.easyui.min.js" charset=UTF-8></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/easyui-lang-zh_CN.js" charset=UTF-8></script>
</head>
<script type="text/javascript">
$(function() {
	//-----------------展现所有代理点信息--------------
	$("#dg").datagrid({
		url:'proxyss',
		columns:[[   
		          {field:'ck',checkbox:true},
		          {field:'did',title:'代理点编号',width:80},    
		          {field:'dname',title:'代理点名称',width:80},    
		          {field:'uid',title:'管理员编号',width:80},
		          {field:'pname',title:'上行站点',width:80}, 
		      ]] ,
		      rownumbers:true,
		      pagination:true,
		      fitColumns:true,
		      pagePosition:'bottom',
		      pageSize:5,
		      pageList:[5,10],
		     
	})
	$("#save").linkbutton({
		onClick:function(){
	$.ajax({
				url:'proxyss',	
				type:'post',
				datatype:'json',
				success:function(data){
					alert(data);
				}
        })
        }})
})
</script>
<body>
<table id="dg"></table>
<button class="easyui-linkbutton" id="save">确&nbsp;&nbsp;定</button>
</body>
</html>